home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Gui4Cli / Docs / Tutorials / Buttons.gc < prev    next >
Encoding:
Gui4CLI script  |  1980-01-03  |  910 b   |  49 lines

  1. G4C
  2.  
  3.  
  4.  
  5. WINBIG 215 73 257 76  "Buttons.gc"
  6. WinType 11110001
  7.  
  8.  
  9. BOX 0 0 0 0  OUT RIDGE
  10.  
  11. xonLoad 
  12. GuiOpen Buttons.gc
  13.  
  14. xonClose
  15. GuiQuit Buttons.gc
  16.  
  17. ; The job of each of the four buttons here is to update
  18. ; the message displayed in the text gadget below..
  19. ; Each xButton entry takes five arguments :
  20. ; Left  Top  Width  Height  Title
  21.  
  22.  
  23. ; ---- This button just provides a little title in the window.
  24. ;      Left 80, Top 10, Width 70, Height 12
  25. ;      It also updates the text in gadid 1..
  26.  
  27. XBUTTON 59 8 136 15  'Buttons'
  28. Update Buttons.gc 1 "That one says 'Buttons'"
  29.  
  30.  
  31. ; ---- Buttons A, B, C 
  32.  
  33. XBUTTON 22 29 50 20  'A'
  34. Update Buttons.gc 1 'You clicked on button A'
  35.  
  36. XBUTTON 105 29 50 20  'B'
  37. Update Buttons.gc 1 ' That time you chose B'
  38.  
  39. XBUTTON 178 29 50 20  'C'
  40. Update Buttons.gc 1 "  That's the C button"
  41.  
  42.  
  43. ; ---- This text gadget will be updated when a button is pressed
  44.  
  45. TEXT 27 54 100 14  '' 24 NOBOX
  46. gadid 1
  47.  
  48.  
  49.